<script setup>
import { onMounted, onUnmounted, reactive } from 'vue';
import LinShowCard from '../components/about/LinShowCard.vue';
const mockData = [
    {
        title: 'Golang',
        img: '/images/lang_icon/golang.png'
    },
    {
        title: 'Gin',
        img: '/images/lang_icon/gin.png'
    },
    {
        title: 'Xorm',
        img: '/images/lang_icon/xorm.png'
    },
    {
        title: 'Vite',
        img: '/images/lang_icon/vite.png'
    },
    {
        title: 'Vue3',
        img: '/images/lang_icon/vue3.png'
    },
    {
        title: 'Pinia',
        img: '/images/lang_icon/pinia.png'
    },
    {
        title: 'Axios',
        img: '/images/lang_icon/axios.png'
    },
    {
        title: 'Vue Router',
        img: '/images/lang_icon/vue-router.png'
    },
    {
        title: 'MySQL',
        img: '/images/lang_icon/mysql.png'
    },
    {
        title: 'npm',
        img: '/images/lang_icon/npm.png'
    },

    {
        title: 'Sass',
        img: '/images/lang_icon/Sass.png'
    },
    {
        title: 'CSS3',
        img: '/images/lang_icon/CSS3.png'
    },
    {
        title: 'HTML5',
        img: '/images/lang_icon/HTML5.png'
    },
    {
        title: 'JavaScript',
        img: '/images/lang_icon/ES6.png'
    },
]
let cardData = reactive([
])

onMounted(() => {
    for (let i = 0; i < mockData.length; i++) {
        setTimeout(() => {
            cardData.push(mockData[i])
        }, i * 300)
    }
})
onUnmounted(() => {


})

</script>

<template>
    <div class="about">
        <div class="titlebox">
            <span>关于本站</span>
        </div>
        <div class="about-content">

            <span>
                &nbsp;&nbsp;关于本站，本站是一个个人博客网站，用于记录和分享我的学习心得、生活感悟和兴趣爱好。
                本站是一个前后端分离的项目，前端采用Vue3+Vite搭建，使用了Vue Router进行路由管理，使用了pinia进行状态管理，使用了Axios进行数据请求。
                为了锻炼自身的能力，页面表现没有使用任何UI框架，而是自己手写的样式，同时使用了Vue3的Composition API，使代码更加简洁和可维护。
                后端采用Golang+gin框架搭建，使用了mysql作为数据库，使用了gorm进行数据建模和操作。我也注重项目的可维护性和可扩展性，使用了模块化设计和组件化开发，使项目结构清晰，易于维护和扩展。
            </span>
            <div class="show-box">
                <LinShowCard v-for="item in cardData" :key="item.title" :title="item.title" :img="item.img">
                </LinShowCard>
            </div>
        </div>
        <footer>
            <span>© 2024 Lin6x's Blog</span>
            <span>黔ICP备2023011224号-1</span>
        </footer>
    </div>

</template>

<style lang="scss" scoped>
.about {
    background: #F7F7F7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;

    .titlebox {
        width: 100%;
        height: 80px;
        display: flex;
        justify-content: center;

        span {
            font-size: 30px;
            font-weight: 600;
            color: #333333;
            margin-top: 20px;

            &::after {
                margin: 0 auto;
                content: '';
                display: block;
                width: 30px;
                height: 4px;
                background: red;
                margin-top: 10px;
            }
        }



    }

    .about-content {
        width: 1200px;
        min-height: 700px;
        margin-top: 20px;
        border-radius: 10px;
        padding: 20px 30px;
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;

        span {
            font-size: 16px;
            line-height: 30px;
            color: #666666;
        }

        .show-box {
            margin-top: 40px;
            display: flex;
            justify-content: left;
            flex-wrap: wrap;
            width: 100%;
        }
    }

    footer {
        width: 100%;
        height: 50px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        span {
            font-size: 14px;
            color: #999999;
        }
    }
}
</style>